<?php
/**
 * The defining of the autoload mechanism
 * @internal
 */
function __autoload($className){
	if (file_exists("actions/{$className}.class.php")){
		require_once("actions/{$className}.class.php");
	}
	else if (file_exists("db/{$className}.class.php")){
		require_once("db/{$className}.class.php");
	}
	else if (file_exists("lib/{$className}.class.php")){
		require_once("lib/{$className}.class.php");
	}	
	else if (file_exists("{$className}.class.php")){
		require_once("{$className}.class.php");
	}

	if (class_exists($className)) return true;
	else return false;
}
?>